﻿<f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:ajax="http://www.apusic.com/jsf/ajax" xmlns:biz="http://www.kingdee.com/jsf/biz" xmlns="http://www.w3.org/1999/xhtml" xmlns:om="http://www.apusic.com/jsf/misc" xmlns:kd="http://www.kingdee.com/jsf/component" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:layout="http://www.apusic.com/jsf/layout" xmlns:h="http://java.sun.com/jsf/html" xmlns:w="http://www.apusic.com/jsf/widget" renderKitId="AJAX">
	<kd />
	<ui:composition template="/custom/aoyuan/aytime/bizbill/list-template.xhtml">
		<ui:define name="resBefore">
			<f:loadBundle basename="com.kingdee.eas.custom.aoyuan.aytime.bizbill.web.AttenDetailListUIBean" var="extraMsgs" />
		</ui:define>
		<ui:define name="resAfter">
			<script type="text/javascript" src="js/attenDetailList.js"></script>
			<w:script language="javascript" src="/resource/common_best.js" />
			<w:script language="javascript" src="/resource/commonQuery.js" />	
		</ui:define>		
		<ui:define name="toolbar">
			<w:toolBar id="rootToolBar">
				<w:button id="btnQuery" label="#{extraMsgs['btnQuery.label']}" actionBinding="#{custom.aoyuan.aytime.bizbill.AttenDetailListUIBean.queryAction}" />	
				<w:button id="btnSearch" label="查询" style="display:none;" actionBinding="#{custom.aoyuan.aytime.bizbill.AttenDetailListUIBean.actionQueryData}" />
				<w:button id="btnRefresh" label="#{extraMsgs['btnRefresh.label']}" style="display:none;"  actionBinding="#{custom.aoyuan.aytime.bizbill.AttenDetailListUIBean.refreshAction}" />					
			</w:toolBar>		
		</ui:define>
		<ui:define name="message">
			<kd:msgArea style=""></kd:msgArea>
		</ui:define>	
		<ui:define name="header">
		  <layout:panelGrid columns="3" width="100%">
			<layout:cell colspan="1" rowspan="1" style="display:none;">
				<kd:labelContainer id="contstartDate" width="270" visible="true" caption="开始时间" lineWidth="80" childItem="pkstartDate" jsvar="contstartDate">
					<w:dateField id="pkstartDate" required="false"  pattern="yyyy-MM-dd" castType="java.sql.Timestamp" jsvar="pkstartDate"  />
				</kd:labelContainer>			
			</layout:cell>	
			<layout:cell colspan="1" rowspan="1" style="display:none;" >
				<kd:labelContainer id="contendDate" width="270" visible="true" caption="结束时间" lineWidth="80" childItem="pkendDate" jsvar="contendDate">
					<w:dateField id="pkendDate"  required="false" pattern="yyyy-MM-dd" castType="java.sql.Timestamp" jsvar="pkendDate" />
				</kd:labelContainer>			
			</layout:cell>			
			<layout:cell colspan="1" rowspan="1" style="display:none;" >
				<kd:labelContainer id="contDept" width="270" height="19" caption="查询部门" lineWidth="100" childItem="prmtDept" jsvar="contDept">
					<kd:promptBox id="prmtDept" queryInfo="com.kingdee.eas.basedata.org.app.AdminItemQuery" displayFormat="$name$" editFormat="$number$" jsvar="prmtDept" />
				</kd:labelContainer>		
			</layout:cell>	
			<layout:cell colspan="1" rowspan="1" style="display:none;" >
				<kd:labelContainer id="contEmpId" width="270"  visible="false" lineWidth="100"  jsvar="contEmpId">
					<w:textField id="txtEmpId" required="false" jsvar="txtEmptId"  value="#{custom.aoyuan.aytime.bizbill.AttenDetailListUIBean.empId}" />				
				</kd:labelContainer>
			</layout:cell>							
		  </layout:panelGrid>		  
		</ui:define>
		<ui:define name="list">	
			<div style="height:#{custom.aoyuan.aytime.bizbill.AttenDetailListUIBean.showHeight}px;width: 98%">	
				<w:dataGrid id="listDataGrid" binding="#{custom.aoyuan.aytime.bizbill.AttenDetailListUIBean.grid}" 
				rows="#{custom.aoyuan.aytime.bizbill.AttenDetailListUIBean.displayRows}" 
				style="overflow-x:auto;overflow-y:hidden;height:#{custom.aoyuan.aytime.bizbill.AttenDetailListUIBean.showHeight}px;" 
				paged="true" value="#{custom.aoyuan.aytime.bizbill.AttenDetailListUIBean.pagedListData}" var="data" showRowNumber="true" 
				sync="true" toolBarPosition="bottom" align="left" jsvar="listDataGrid">
					<w:outputColumn id="idColumn" header="#{extraMsgs['idColumn.header']}" width="100" hidden="true" value="#{data['id']}" />
					<w:outputColumn id="bizDateColumn" header="日期" width="100" value="#{data['bizDate']}" sortable="true" />
					<w:outputColumn id="Emp_idColumn" hidden="true"  header="empId"  width="100" value="#{data['Emp.id']}" />
					<w:outputColumn id="Emp_nameColumn" header="#{extraMsgs['Emp_nameColumn.header']}" width="100" value="#{data['Emp.name']}" />
					<w:outputColumn id="sTime1Column" header="#{extraMsgs['sTime1Column.header']}" width="100" value="#{data['sTime1']}" />
					<w:outputColumn id="ETime1Column" header="上午下班时间" width="100" value="#{data['ETime1']}" />
					<w:outputColumn id="sTime2Column" header="下午上班时间" width="100" value="#{data['sTime2']}" />
					<w:outputColumn id="ETime2Column" header="#{extraMsgs['ETime2Column.header']}" width="100" value="#{data['ETime2']}" />				
					<w:outputColumn id="isCloseColumn" header="是否正常" width="100" value="#{data['isClose']}"  clientFormatter="isCloseRenderer" />			
					<w:outputColumn id="holidayIdColumn" header="holidayId" hidden="true" width="100" value="#{data['HolidayBill.id']}" />	
					<w:outputColumn id="orp" header="操作" width="70" hidden="false" clientFormatter="showOperate" value="#{data['id']}" align="left" />					
					<w:outputColumn id="holidayTypeColumn" header="假期类型" width="100" value="#{data['HolidayType.name']}" />					
					<w:outputColumn id="startTIme" header="开始时间" width="100" value="#{data['HolidayBillEntry.StartTime']}" />
					<w:outputColumn id="endTIme" header="结束时间" width="100" value="#{data['HolidayBillEntry.EndTime']}" />
					<w:outputColumn id="HolidayBill_stateColumn" header="状态" width="100" value="#{data['HolidayBill.status']}" clientFormatter="stateRenderer" >
						<w:numberField id="stateColumnEditor" />
					</w:outputColumn>
				</w:dataGrid>			
			</div>		
		</ui:define>
		<ui:define name="innerAjaxActions">
			<biz:billListInnerAjaxAction beanName="#{custom.aoyuan.aytime.bizbill.AttenDetailListUIBean}"></biz:billListInnerAjaxAction>
		</ui:define>
		<ui:define name="inner-window">
			<biz:innerWindow beanName="#{custom.aoyuan.aytime.bizbill.AttenDetailListUIBean}"></biz:innerWindow>
		</ui:define>
	</ui:composition>							
</f:view>


